using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._NetworkDiagramTools._Configuration
{
    /// <summary>
    /// <para>Add Diagram Template</para>
    /// <para>Adds a new diagram template to a network. Both a network diagram rule and layout definitions file (.ndbd) and a network diagram layer definition file (.ndld) can be imported.</para>
    /// <para>将新的逻辑示意图模板添加到网络。可以导入网络逻辑示意图规则和布局定义文件 （.ndbd） 以及网络逻辑示意图图层定义文件 （.ndld）。</para>
    /// </summary>    
    [DisplayName("Add Diagram Template")]
    public class AddDiagramTemplate : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddDiagramTemplate()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para>The utility network or trace network to which the template will be added.</para>
        /// <para>将模板添加到的公共设施网络或追踪网络。</para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Diagram Template  Name</para>
        /// <para>The name of the output diagram template.</para>
        /// <para>输出逻辑示意图模板的名称。</para>
        /// </param>
        public AddDiagramTemplate(object _in_utility_network, object _template_name)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
        }
        public override string ToolboxName => "Network Diagram Tools";

        public override string ToolName => "Add Diagram Template";

        public override string CallName => "nd.AddDiagramTemplate";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _ndbd_file, _ndld_file, _out_utility_network, _out_template_name];

        /// <summary>
        /// <para>Input Network</para>
        /// <para>The utility network or trace network to which the template will be added.</para>
        /// <para>将模板添加到的公共设施网络或追踪网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Diagram Template  Name</para>
        /// <para>The name of the output diagram template.</para>
        /// <para>输出逻辑示意图模板的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Diagram Template  Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>Rule and Layout Definitions File</para>
        /// <para>The network diagram rule and layout definitions file (.ndbd) to import. This file can be created using the Export Diagram Template Definitions tool on an existing template.</para>
        /// <para>要导入的网络逻辑示意图规则和布局定义文件 （.ndbd）。可以使用现有模板上的导出逻辑示意图模板定义工具创建此文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Rule and Layout Definitions File")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _ndbd_file { get; set; } = null;


        /// <summary>
        /// <para>Diagram Layer Definition File</para>
        /// <para><xdoc>
        ///   <para>The diagram layer definition file (.ndld) to import. This file can be created using the Export Diagram Template Definitions or Export Diagram Layer Definition tool on an existing template.</para>
        ///   <para>When this parameter is not specified or loads an empty .ndld file, a default diagram layer definition is systematically initialized on the input diagram template.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>要导入的逻辑示意图图层定义文件 （.ndld）。可以使用现有模板上的导出逻辑示意图模板定义或导出逻辑示意图图层定义工具创建此文件。</para>
        ///   <para>如果未指定此参数或加载空的 .ndld 文件，则会在输入逻辑示意图模板上系统初始化默认逻辑示意图图层定义。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Diagram Layer Definition File")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _ndld_file { get; set; } = null;


        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        public AddDiagramTemplate SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}